package com.iss.card.view.model;

import com.iss.card.webservice.BaseModel;

/**
 * city info.
 */
public class CityBean extends BaseModel{
	private String cityId;
	private String cityName;
	private boolean isHot;
	private String storeNumber;
	private String alpha;
	private String jianpin;
//	cityId>1</cityId> 
//	<cityName>郑州市</cityName> 
//	<isHot>false</isHot> 
//	<storeNumber>0</storeNumber>
	
	public String getJianpin() {
		return jianpin;
	}
	public void setJianpin(String jianpin) {
		this.jianpin = jianpin;
	}
	public String getAlpha() {
		return alpha;
	}
	public void setAlpha(String alpha) {
		this.alpha = alpha;
	}
	public String getCityId() {
		return cityId;
	}
	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	public boolean getIsHot() {
		return isHot;
	}
	public void setIsHot(boolean isHot) {
		this.isHot = isHot;
	}
	public String getStoreNumber() {
		return storeNumber;
	}
	public void setStoreNumber(String storeNumber) {
		this.storeNumber = storeNumber;
	}

	private static final String CITYID = "cityId";
	private static final String CITYNAME = "cityName";
	private static final String ISHOT = "isHot";
	private static final String STORENUMBER = "storeNumber";
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		if (CITYID.equals(tempString)) {   
        	setCityId(valueString);
		}else if (CITYNAME.equals(tempString)) {   
        	setCityName(valueString);
		}else if (ISHOT.equals(tempString)) {   
        	setIsHot(Boolean.valueOf(valueString));
		}else if (STORENUMBER.equals(tempString)) {   
        	setStoreNumber(valueString);
		}
		
		baseMode = this;
	}
	
}
